<?php
/**
 * Store all stats for association
 *
 * @package    letsManager
 * @subpackage model
 * @author     Jerome Fouilloy
 * @version    SVN: $Rev$
 */
class AssociationExchangeStats
{
	public $nbExchangesValidated = 0;
	public $nbExchangesPending = 0;
	public $totalMoneyExchanges =0;
	public $nbMembers =0;
	public $nbMembersWithoutExchanges =0;
	public $moneyAssociation =0;
	
	/** array with member on key and amount in value */
	public $membersMostExchange = array();
	public $membersMostRich = array();
	public $membersMostPoor = array();
	public $membersMostAmount = array();
	
	public static function generateStatsForAssociation($asso_id)
	{
		$stats = new AssociationExchangeStats();
		LetsExchangeTable::generateStatsForAssociation($stats,$asso_id);
		return $stats;
	}
}